package com.wanmait.recruitment.pojo;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class Admin implements Serializable {
    private Integer id;

    /**
	* 管理员用户名
	*/
    private String username;

    /**
	* 管理员密码
	*/
    private String userpass;

    /**
	* 添加时间
	*/
    private Date inputTime;

    /**
	* 是否是超级管理员
	*/
    private Boolean isSuper;

    /**
	* 登录次数
	*/
    private Integer loginCount;
    private List<AdminLoginIp> adminLoginIps;
    private Boolean enable;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUserpass() {
        return userpass;
    }

    public void setUserpass(String userpass) {
        this.userpass = userpass;
    }

    public Date getInputTime() {
        return inputTime;
    }

    public void setInputTime(Date inputTime) {
        this.inputTime = inputTime;
    }

    public Boolean getIsSuper() {
        return isSuper;
    }

    public void setIsSuper(Boolean isSuper) {
        this.isSuper = isSuper;
    }

    public Integer getLoginCount() {
        return loginCount;
    }

    public void setLoginCount(Integer loginCount) {
        this.loginCount = loginCount;
    }

    public Boolean getEnable() {
        return enable;
    }

    public void setEnable(Boolean enable) {
        this.enable = enable;
    }

    public void setSuper(Boolean aSuper) {
        isSuper = aSuper;
    }

    public List<AdminLoginIp> getAdminLoginIps() {
        return adminLoginIps;
    }

    public void setAdminLoginIps(List<AdminLoginIp> adminLoginIps) {
        this.adminLoginIps = adminLoginIps;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", username=").append(username);
        sb.append(", userpass=").append(userpass);
        sb.append(", inputTime=").append(inputTime);
        sb.append(", isSuper=").append(isSuper);
        sb.append(", loginCount=").append(loginCount);
        sb.append(", enable=").append(enable);
        sb.append(", adminLoginIps=").append(adminLoginIps);
        sb.append("]");
        return sb.toString();
    }
}